package com.bdqn.zhang.service.impl;

import com.bdqn.zhang.dao.UserMapper;
import com.bdqn.zhang.pojo.User;
import com.bdqn.zhang.service.UserService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public Integer count() {
        return userMapper.count();
    }

    @Override
    public Integer addUser(User user) {
        return userMapper.addUser(user);
    }
}
